<div class="grid_1">
   <div class="box">
      <div class="header">
      <?php echo $this->Html->image('icons/packs/diagona/16x16/200.png') ?>
      <h3>Registro de cobro al socio(a) <?php echo $nombre ?></h3>
      </div>
   
   <?php echo $this->Form->create('Ingreso') ?>
   <div class="content">
      <div class="_50">
      <label>Monto Bs</label>
      <p><?php echo $this->Form->text('monto') ?>
      </p>
      </div>
      <div class="_50">
      <label>V&iacute;a</label>
      <?php $vias=array('1'=>'Banco', '2'=>'Efectivo') ?>
      <p><?php echo $this->Form->select('tipocobro_id', $vias, array('id'=>"combo1")) ?></p>
      </div>
      <div class="_100" id="combo2">
      <input type="text" disabled="on"/>	
      </div>
      <div class="_100">
      <label>Glosa</label>
      <p>
      <?php echo $this->Form->textarea('glosa') ?>
      </p>
      </div>
   </div>
   <div class="actions">
      <div class="actions-left">
         <input type="reset" value="Limpiar" />
      </div>
      <div class="actions-right">
      <?php $options=array('Value'=>'Registrar donacion')?>
      <?php echo $this->Form->end($options);?>
      </div>
   </div>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
	// Parametros para e combo1
   jQuery("#combo1").change(function(){
		elegido=jQuery(this).val();
        if(elegido == 1){
            //alert(elegido);
            jQuery("#combo2").load('http://localhost/kennel/cobros/ajaxbanco');
        }else{
            jQuery("#combo2").load('http://localhost/kennel/cobros/ajaxefectivo');
        }
   });
});
</script>